package qdu.rg05.test_uridata;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import androidx.annotation.Nullable;

public class Act2 extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ly_act2);

        Intent it = getIntent();
//        Log.i("mytag",it.getAction());
//        Log.i("mytag", it.getDataString());
//        Log.i("mytag", it.getScheme() + "\n" + it.getData().getHost()
//        + "\n" + it.getData().getPort() + "\n" + it.getData().getPath());
        if("/class5".equals(it.getData().getPath())){
            it.setClassName("qdu.rg05.test_uridata","qdu.rg05.test_uridata.Ind_act1");
            startActivity(it);
            finish();
        }else if("/class1".equals(it.getData().getPath())){
            it.setClassName("qdu.rg05.test_uridata","qdu.rg05.test_uridata.Ind_act2");
            startActivity(it);
            finish();
        }

    }
}
